﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PartsQueryList.aspx.cs" Inherits="IHISCETeim.Web.AgentSys.PWMgr.PartsQueryList" %>


<form id="pagerForm" method="post" action="PWMgr/PartsQueryList.aspx">
<input type="hidden" name="ItemName" value="<%=ItemName %>" />
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="PWMgr/PartsQueryList.aspx" onsubmit="return navTabSearch(this);">
    
<div class="pageContent"> 
    <div class="searchBar">
     
        <table class="searchContent">
             <%if (QueryVerCode == "")
                 { %>
            <tr>
                 <td><div class="buttonActive"><div class="buttonContent">
                     <input type="hidden" name="action" value="getvercode" />
                     <button type="submit">点击获取查询验证码</button>
                     </div>
                     </div>

                 </td>
                 <td>验证码将发送到[<B><%=base.User.EMail %></B>]邮箱,请注意查收.一个验证码只能使用[<%=CacheMinutes.ToString() %>]分钟.</td>
            </tr>
            <%} %>
            <%if (QueryVerCode != "")
                { %>
            <tr>   
                <td>查询验证码:</td>  
                <td> <input type="text" name="InputQueryVerCode" value="<%=InputQueryVerCode %>" /></td>                         
                <td>
                    配件号或名称:
                </td>
                <td>
                    <input type="text" name="ItemName" value="<%=ItemName %>" />
                </td>                               
                <td>
                    <div class="subBar">
                        <ul>
                            <li>
                                  <input type="hidden" name="action" value="query" />
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="submit">
                                            检索</button></div>
                                </div>
                            </li>
                            <li style="line-height:25px; color:red;"> <%=VerStr %></li>
                        </ul>
                    </div>
                   
                </td>
            </tr>  
            <%} %>                      
        </table>
    </div>
    <div class="panelBar" style="color:red; height:50px!important; font-size:16px; ">                    
        &nbsp;1.查询价格为参考价格，最终价格以配件部出单价格为准；<br/><br/>
        &nbsp;2.若查询配件无法显示价格或价格为0，为系统尚未维护价格，请及时通知配件部进行维护。
    </div>
                
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="list" width="100%" layoutH="80">                   
        <thead>
            <tr  >                   
                <th>
                    配件号
                </th>
                <th >
                    配件名称
                </th>
                <th >
                    进货价格（RMB）
                </th>  
                <th>指导售价(RMB)</th>
                <th >
                    库存
                </th>
                 <th >
                  &nbsp;
                </th>                             
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user"> 
				<td>
                    <%# Eval("ItemCode") %>
                </td>
                <td >
                    <%# Eval("ItemName") %>
                </td>  
				<td><%# Convert.ToDecimal( Eval("Price")).ToString("F2")%></td>
                <td><%# Convert.ToDecimal( Eval("customerPrice")).ToString("F2")%></td>                
			    <td><%# Convert.ToDecimal(Eval("OnHand")).ToString("F2")%></td>
                <td >&nbsp;</td>            
                                                         
			</tr>
        </ItemTemplate>        
        <FooterTemplate> 
            <tr style=' color:red;display:<%#bool.Parse((rpMenu.Items.Count==0).ToString())?"":"none"%>' >
                <td colspan="5" style=" text-align:center; font-size:16px;">查无此配件..</td>
            </tr>                   
        </tbody>
    </table>
    </FooterTemplate> 
    </asp:repeater>
   <%-- <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>     --%>       
</div>
</form>
